package com.gz.moreaseManager.sys.entity;


import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色菜单表
 * </p>
 *
 * @author wike
 * @since 2019-02-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_role_menu")
public class RoleMenu extends Model<RoleMenu> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色ID
     */
    @TableField("role_id")
    private Integer roleId;

    /**
     * 菜单ID
     */
    @TableField("menu_id")
    private Integer menuId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    /**
     * Field role_name 角色名称
     */
    private String roleName;

    /**
     * Field menu_name 菜单名称
     */
    private String menuName;

    /**
     * Field menu_link 菜单链接
     */
    private String menuLink;

    /**
     * Field menu_type 菜单类型:1.菜单;2.动作
     */
    private Byte menuType;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
